﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLKHACHHANG
{
    public partial class frmChangePass : DevExpress.XtraEditors.XtraForm
    {
        public frmChangePass()
        {
            InitializeComponent();
            txtTendangnhap.Text = SetConfig.getAppSetting("Username");
        }

        private void btLuu_Click(object sender, EventArgs e)
        {
            if (DataAccess.DBUser.ChangePass(txtTendangnhap.Text, txtMatkhaucu.Text,txtMatkhaumoi.Text))
            {
                MessageBox.Show("Thay đổi mật khẩu thành công!");
            }            
            
        }

        private void btThoat_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }
    }
}